<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>聚合点位</title>

    <link rel="stylesheet" href="http://127.0.0.1/arcgis_js_api/library/4.11/esri/css/main.css">
    <link rel="stylesheet" href="css/mainApp.css">



    <script src="../dist/config.js"></script>

    <script src="http://127.0.0.1/arcgis_js_api/library/4.11/init.js"></script>
    <script>


        // Load the Map and MapView modules
        require(["esri/Map",

            "dextra/layers/GoogleImageLayer",
            "dextra/modules/viewers/SceneViewer",
            "dextra/task/DExtraGeoprocessor",
            "esri/geometry/Point",
            "dojo/domReady!src/heatMapdemo"], function(Map, GoogleImageLayer, SceneViewer, DExtraGeoprocessor, Point) {

            var gp = new DExtraGeoprocessor({
                url: "https://honghe20.audit.com/server/rest/services/GPTool/TGHYGYLAnalysis/GPServer/%E9%80%80%E8%80%95%E8%BF%98%E6%9E%97%E4%B8%8E%E5%85%AC%E7%9B%8A%E6%9E%97",
            });
            gp.submitJobReturnId({
                "退耕还林": "TGHL2015",
                "公益林": "GYL",
                "筛选面积": "mj_js > 666",
                "行政区划代码": "532501000000",
            }).then(function (res) {
                   console.log(res);
                   var id=res.data.jobId;
                   var int=self.setInterval(function(){
                       gp.checkJobStatus(id).then(function(jobInfo){
                           console.log(jobInfo);
                           if(jobInfo.jobStatus !== "job-executing"){
                               clearInterval(int);
                           }
                       })

                   },1000)
                },
                function (error) {
                    console.error(error);
                });;







        });
    </script>


</head>
<body>

<div id="viewDiv"></div>
</body>
</html>